<%@ page pageEncoding="UTF-8" contentType="text/html; charset=utf-8"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
	body{
		text-align: center;
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Reading List</title>
<% 
	String language = request.getParameter("language");
	String targetLanguage = request.getParameter("target");
	
	java.util.List<org.languageguide.readings.TranslatedReading> readings = org.languageguide.readings.ReadingManager.getReadings(language, targetLanguage);
%>
</head>
<body>
<jsp:include page="../user.jsp"/>
<% if (!targetLanguage.equals("en")){ %>
<div style=" width: 300px; margin:auto;"><img style="margin-bottom: 5px;" src="/LangGuide2.jpg" width="298" height="99"></div>
<div style="border: blue solid 1px;  padding: 6px; margin: auto;  width: 600px; text-align:center;"><a href="/user/wiki.jsp?lang=<%=  targetLanguage %>">Pictorial Wiki</a> | 
<a href="/user/translate_list.jsp?language=en&section=1&target=<%=  targetLanguage %>">Interface</a> | 
<a href="/user/translate_list.jsp?language=en&section=2&target=<%=  targetLanguage %>">English Complementary Vocab Pages</a>
 | 
<strong>Interactive Readings</strong>
</div>

<% } %>

<p style="margin: 30px; clear: both;"><span style="border: 4px dashed rgb(255, 221, 221); background-color: rgb(221, 255, 221); padding:5px;">This page is for translating <a href="/eng/about.html#readings">interactive readings</a>. Please read the <a href="docs/translations.html">help page</a>.</span> </p>
<table width="600" border="0"  align="center" style="margin-top: 20px; text-align:left;">
<%
//	System.out.println(readings.size());
if (readings != null){
	for (org.languageguide.readings.TranslatedReading reading: readings){
		out.println(reading.getXHTMLTableRow());
	}
}
%>
</table>

</body>
</html>